package com.koron.order.experiment.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.experiment.bean.po.ExperimentEquipmentPo;
import com.koron.order.experiment.bean.vo.ExperimentEquipmentVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (ExperimentEquipment)表服务接口
 *
 * @author zhouj
 * @since 2021-10-08 16:42:58
 */
public interface ExperimentEquipmentService extends CommonService {

    int insertOrUpdate(SessionFactory factory, ExperimentEquipmentPo experimentEquipment);

    int insertOrUpdateBatch(SessionFactory factory, List<ExperimentEquipmentPo> experimentEquipmentList);

    int insert(SessionFactory factory, ExperimentEquipmentPo experimentEquipment);

    int insertBatch(SessionFactory factory, List<ExperimentEquipmentPo> experimentEquipments);

    int update(SessionFactory factory, ExperimentEquipmentPo experimentEquipment);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String experimentId);

    ExperimentEquipmentPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, ExperimentEquipmentPo experimentEquipment, BaseQueryBean pageBean);

    List<ExperimentEquipmentPo> queryList(SessionFactory factory, ExperimentEquipmentPo experimentEquipment);

    List<ExperimentEquipmentVo> queryByOrderId(SessionFactory factory, String orderId);

    List<ExperimentEquipmentVo> queryByExperimentEquipmentId(SessionFactory factory, String experimentEquipmentId);

}
